package org.jeecg.modules.basic.plan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanGoods;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanapplication;
import org.jeecg.modules.basic.storages.entity.LwgyStoragesNum;

import java.util.List;
import java.util.Map;

/**
 * @Description: 物料管理退库表
 * @Author: jeecg-boot
 * @Date:   2021-04-06
 * @Version: V1.0
 */
public interface LwgyMaterialPlanGoodsMapper extends BaseMapper<LwgyMaterialPlanGoods> {

    public boolean deleteByMainId(@Param("mainId") String mainId);

    public List<LwgyMaterialPlanGoods> selectByMainId(@Param("mainId") String mainId);

    /**批量添加物料子表数据*/
    void insertPlanGoods(List<LwgyMaterialPlanGoods> roomList);

    List<Map<String,Object>>queryList(@Param("planId")String planId);

    List<Map<String,Object>>queryListIn(@Param("planId")String planId);
}
